<h1>Editing page</h1>

	<% form_for(@page) do |f| %>
		<%= f.error_messages %>

		<p>
			<%= f.label :title %><br />
			<%= f.text_field :title %>
		</p>
		<p>
			<%= f.label :author %><br />
			<%= f.text_field :author %>
		</p>
		<p>
			<%= f.label :body %><br />
			<%= f.text_area :body %>
		</p>
		<p>
			<%= f.label :permission_0, "Private" %>
			<%= f.radio_button :permission, 0 %>
			<%= f.label :permission_1, "Public" %>
			<%= f.radio_button :permission, 1 %>
		</p>
		<p>
			<%= f.submit "Update" %>
		</p>
	<% end %>

<%= link_to 'Show', @page %> |
<%= link_to 'Back', pages_path %>
